import request from '@/utils/request'

// 获取分页查询数据
export function getList(queryParms) {
  return request({
    url: '/spus/paged',
    method: 'post',
    data: queryParms
  })
}

export function getSpu(id) {
  return request({
    url: `/spus/${id}`,
    method: 'get'
  })
}

export function createSpu(data) {
  return request({
    url: '/spus/add-new',
    method: 'post',
    data
  })
}
